home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 12984 / 12984.xpi / chrome / VideoDownloaderToolbar.jar / content / vid.xul < prev   
Extensible Markup Language  |  2010-01-29  |  7KB  |  189 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://vidbar/skin/vid.css" type="text/css"?>
  3.  
  4. <!DOCTYPE overlay SYSTEM "chrome://vidbar/locale/vid.dtd" >
  5.  
  6. <overlay id="vidbar-overlay"
  7.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  8.     
  9.     <script type="application/x-javascript" src="chrome://vidbar/content/vid.js" />
  10.     <script type="application/x-javascript" src="chrome://vidbar/content/utils.js" />
  11.     <script type="application/x-javascript" src="chrome://vidbar/content/db.js" />
  12.     <script type="application/x-javascript" src="chrome://vidbar/content/md5.js" />    
  13.     <script type="application/x-javascript" src="chrome://vidbar/content/facebook.js" />
  14.     <script type="application/x-javascript" src="chrome://vidbar/content/docanalyzer.js" />
  15.     <script type="application/x-javascript" src="chrome://vidbar/content/netmonitor.js" />
  16.     <script type="application/x-javascript" src="chrome://vidbar/content/Profile.js" />
  17.     <script type="application/x-javascript" src="chrome://vidbar/content/autofill.js" />    
  18.     <script type="application/x-javascript">
  19.         <![CDATA[
  20.         window.addEventListener("load", function(event){com.VidBar.Main.onLoad(event);}, true);
  21.         window.addEventListener("close",function(event){com.VidBar.Main.onClose(event);},true);
  22.         ]]>
  23.     </script>
  24.  
  25. <!--  
  26.     <popup id="menu_ToolsPopup">
  27.         <menu id="vidbar-toolsmenu" label="Video Downloader" insertafter="devToolsSeparator">
  28.             <menupopup id="vidbar-toolsmenupopup" />
  29.         </menu>
  30.     </popup>
  31. -->
  32.  
  33.     <toolbox id="navigator-toolbox">
  34.         <toolbar id="vidbar-toolbar" class="chromeclass-toolbar-additional"
  35.             toolbarname="Video Downloader Toolbar" hidden="false" persist="hidden collapsed">
  36.  
  37. <!--
  38.             <toolbarbutton class="basic-toolbarbutton"
  39.                 image="chrome://vidbar/skin/bing.png" oncommand="com.VidBar.Main.openHome()">
  40.             </toolbarbutton>
  41. -->
  42.             <toolbarbutton id="vidbar-toolbar-sys-button"
  43.                 label="" tooltiptext="Video Downloader Toolbar" 
  44.                 image="chrome://vidbar/skin/bing-logo-44x16.png" type="menu"
  45.                 orient="horizontal"
  46.                 oncommand="return;if(event.originalTarget.tagName=='xul:toolbarbutton')com.VidBar.UI.openHome()">
  47.                 <menupopup id="vidbar-sys-menupopup">
  48. <!--  
  49.                     <menuitem label="Preferences" 
  50.                         image="chrome://vidbar/skin/preferences.png" 
  51.                         oncommand="com.VidBar.UI.preferences()"
  52.                         class="menuitem-iconic" />
  53.                     <menuitem label="Supported Sites" 
  54.                         oncommand="com.VidBar.UI.openSites()"
  55.                         class="menuitem-iconic" />
  56.                     <menuitem label="Downloads" 
  57.                         image="chrome://vidbar/skin/downloads.gif" 
  58.                         oncommand="com.VidBar.UI.openDownloadQueue()"
  59.                         class="menuitem-iconic"  />
  60.                     <menuitem label="Open Download Folder" 
  61.                         image="chrome://vidbar/skin/open_download_folder.gif"
  62.                         oncommand="com.VidBar.UI.openDownloadDir()"
  63.                         class="menuitem-iconic"  />
  64.                     <menuitem label="Help"
  65.                         image="chrome://vidbar/skin/help2.gif"
  66.                         oncommand="com.VidBar.UI.help()"
  67.                         class="menuitem-iconic"  />
  68.                     <menuseparator />
  69.                     <menuitem label="About"
  70.                         image="chrome://vidbar/skin/about-logo-16.gif"
  71.                         oncommand="com.VidBar.UI.about()"
  72.                         class="menuitem-iconic" />
  73. -->
  74.                 </menupopup>
  75.             </toolbarbutton>
  76.  
  77.             <textbox id="vidbar-search-box" editable="true" width="200" 
  78.                 onkeypress="com.VidBar.UI.onSearchBoxKeyPressed(event)" />
  79.  
  80.             <toolbarbutton label="Search" tooltiptext="Search Bing"
  81.                 image="chrome://vidbar/skin/bing-logo.png"
  82.                 orient="horizontal" type="menu-button"
  83.                 oncommand="if(event.originalTarget.tagName=='xul:toolbarbutton')com.VidBar.UI.searchBing()">
  84.                 <menupopup id="vidbar-search-menupopup">
  85.                     <menuitem label="Search Video" 
  86.                         image="chrome://vidbar/skin/bing-logo.png" 
  87.                         oncommand="com.VidBar.UI.searchBingVideo()"
  88.                         class="menuitem-iconic" />
  89.                 </menupopup>
  90.             </toolbarbutton>
  91.             
  92.             <toolbarseparator />
  93.  
  94.             <toolbaritem class="toolbaritem-1 chromeclass-toolbar-additional"
  95.                 id="vidbar-toolbaritem" context="_child">
  96.                 <toolbarbutton id="vidbar-download-button"
  97.                     label="Save Video"
  98.                     hidden="false" tooltiptext="Save Video" type="menu" disabled="true">
  99.                     <menupopup id="vidbar-download-menupopup" />
  100.                 </toolbarbutton>
  101.             </toolbaritem>
  102. <!--  
  103.             <toolbaritem class="toolbaritem-1 chromeclass-toolbar-additional"
  104.                 id="vidbar-toolbaritem" context="_child">
  105.                 <toolbarbutton label="AutoFill"
  106.                     image="chrome://vidbar/skin/auto-fill.png" 
  107.                     orient="horizontal" type="menu-button"
  108.                     oncommand="if(event.originalTarget.tagName=='xul:toolbarbutton')com.VidBar.UI.autoFill()" >
  109.                     <menupopup id="vidbar-autofill-menupopup">
  110.                         <menuitem label="Edit Profile" 
  111.                             image="chrome://vidbar/skin/options.png" 
  112.                             oncommand="com.VidBar.UI.editAutofillProfile()"
  113.                             class="menuitem-iconic" />
  114.                     </menupopup>
  115.                 </toolbarbutton>
  116.             </toolbaritem>
  117.  
  118.             <toolbarbutton label="Inbox"
  119.                 image="chrome://vidbar/skin/mail.png" 
  120.                 oncommand="com.VidBar.UI.openInbox()"/>
  121. -->
  122.                             
  123.             <toolbarbutton label="Translate"
  124.             tooltiptext="Translate this page" 
  125.                 image="chrome://vidbar/skin/translate.gif" 
  126.                 oncommand="com.VidBar.UI.openTranslate()"/>
  127.                 
  128.             <toolbarbutton label="Stumble!"
  129.             id="vidbar-stumble-button"
  130.             tooltiptext="Stumble to a random interesting page" 
  131.                 oncommand="com.VidBar.UI.openStumble()"/>
  132.             
  133.             <toolbarbutton label="Facebook"
  134.                 image="chrome://vidbar/skin/facebook.png" 
  135.                 oncommand="com.VidBar.UI.openFacebook()"/>
  136.  
  137. <!--                  
  138.             <toolbarseparator />
  139.             
  140.             <toolbarbutton id="vidbar-fb-mail" image="chrome://vidbar/skin/mail.gif"
  141.                 label=" " oncommand="com.VidBar.VidFB.openMail()"/>
  142.             <toolbarbutton id="vidbar-fb-friend" image="chrome://vidbar/skin/friend.gif"
  143.                 label=" " oncommand="com.VidBar.VidFB.openFriend()"/>
  144.             <toolbarbutton id="vidbar-fb-event" image="chrome://vidbar/skin/event.gif"
  145.                 label=" " oncommand="com.VidBar.VidFB.openEvent()"/>
  146.             <toolbarbutton id="vidbar-fb-group" image="chrome://vidbar/skin/group.gif"
  147.                 label=" " oncommand="com.VidBar.VidFB.openGroup()"/>
  148.             <toolbarbutton id="vidbar-fb-poke" image="chrome://vidbar/skin/poke.gif"
  149.                 label=" " oncommand="com.VidBar.VidFB.openPoke()"/>
  150. -->
  151.  
  152.          </toolbar>
  153.     </toolbox>
  154.     
  155.     <toolbarpalette id="BrowserToolbarPalette">
  156.         <toolbaritem class="toolbaritem-1 chromeclass-toolbar-additional"
  157.             id="vidbtn-toolbaritem" context="_child">
  158.             <toolbarbutton id="vidbtn-toolbar-button"
  159.                 label="Video Downloader"
  160.                 hidden="false" tooltiptext="Video Downloader" type="menu" disabled="true">
  161.                 <menupopup id="vidbtn-download-menupopup" />
  162.             </toolbarbutton>
  163.             <menupopup id="vidbtn-toolbar-ctxmenupopup" />
  164.         </toolbaritem>
  165.     </toolbarpalette>
  166.  
  167. <!-- 
  168.     <statusbar id="status-bar">
  169.         <statusbarpanel id="vidbar-statusbarpanel" insertbefore="security-button"
  170.             hidden="true" context="_child">
  171.             <toolbarbutton id="vidbar-statusbar-button"
  172.                 tooltiptext="Video Downloader" type="menu" disabled="true">
  173.                 <menupopup id="vidbar-statusbar-menupopup" />
  174.             </toolbarbutton>
  175.             <menupopup id="vidbar-statusbar-ctxmenupopup" />
  176.         </statusbarpanel>
  177.     </statusbar>
  178. -->
  179.  
  180.     <popup id="contentAreaContextMenu">
  181.         <menu id="vidbar-ctxmenu" label="Video Downloader"
  182.             insertbefore="context-sep-selectall,context-sep-stop,context-sep-copylink">
  183.             <menupopup id="vidbar-ctxmenupopup" />
  184.         </menu>
  185.     </popup>
  186.  
  187. </overlay>
  188.  
  189.